package com.youkeyi.ddy.cloud.common.api.basic.crm.source;

import com.youkeyi.ddy.cloud.common.api.basic.crm.source.dto.CrmSourceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.crm.source.param.CrmSourceUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * CrmSourceCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/3/1 10:54 AM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/crm/source/fallback")
public class CrmSourceCloudServiceFallback implements CrmSourceCloudService {

    @Override
    public CrmSourceListCloudDto query(CrmSourceQueryCloudParam param) {
        return new CrmSourceListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(CrmSourceCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(CrmSourceUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(CrmSourceDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
